package com.hy.service;

import com.hy.Vo.PurchaseApplyDeptUserVo;
import com.hy.bean.PurchaseApply;
import com.hy.bean.RespBean;

import java.util.List;

/**
 * (PurchaseApply)表服务接口
 *
 * @author makejava
 * @since 2024-04-29 14:47:14
 */
public interface PurchaseApplyService {

    /**
     * 通过ID查询单条数据
     *
     * @return 实例对象
     * @param id
     */
    PurchaseApply queryById(int id);


    PurchaseApply queryByPaId(Integer id);

    List<PurchaseApplyDeptUserVo> queryAll(String deptName, String username);

    /**
     * 新增数据
     *
     * @param purchaseApply 实例对象
     * @return 实例对象
     */
    RespBean insert(PurchaseApply purchaseApply);

    /**
     * 修改数据
     *
     * @param purchaseApply 实例对象
     * @return 实例对象
     */
    RespBean update(PurchaseApply purchaseApply);

    RespBean updateStatus(Integer id, Integer status);

    /**
     * 通过主键删除数据
     *
     * @param id
     * @return 是否成功
     */
    RespBean deleteById(Integer id);

}
